package com.zbcbms.entity.tableData;

import javafx.beans.property.SimpleStringProperty;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author fengq
 */
public class BookTableData {
    private SimpleStringProperty bookNumber;
    private SimpleStringProperty bookName;
    private SimpleStringProperty status;
    private SimpleStringProperty publishingHouse;
    private SimpleStringProperty price;
    private SimpleStringProperty publishingTime;
    private SimpleStringProperty author;
    private SimpleStringProperty type;

    public BookTableData() {
    }

    public SimpleStringProperty getType(){
        return type;
    }
    public void setType(String type){
        this.type.set(type);
    }
    public SimpleStringProperty getAuthor(){
        return author;
    }
    public void setAuthor(String author){
        this.author.set(author);
    }
    public SimpleStringProperty getBookNumber() {
        return bookNumber;
    }

    public void setBookNumber(String bookNumber) {
        this.bookNumber.set(bookNumber);
    }

    public SimpleStringProperty getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName.set(bookName);
    }

    public SimpleStringProperty getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status.set(status);
    }

    public SimpleStringProperty getPublishingHouse() {
        return publishingHouse;
    }

    public void setPublishingHouse(String publishingHouse) {
        this.publishingHouse.set(publishingHouse);
    }

    public SimpleStringProperty getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price.set(price.toString());
    }

    public SimpleStringProperty getPublishingTime() {
        return publishingTime;
    }

    public void setPublishingTime(Date publishingTime) {
        this.publishingTime.set(publishingTime.toString());
    }

    @Override
    public String toString() {
        return "BookTableData{" +
                "bookNumber=" + bookNumber +
                ", bookName=" + bookName +
                ", status=" + status +
                ", publishingHouse=" + publishingHouse +
                ", price=" + price +
                ", publishingTime=" + publishingTime +
                ", author=" + author +
                ", type=" + type +
                '}';
    }

    public BookTableData(String bookNumber, String bookName, String status, String publishingHouse, BigDecimal price, Date publishingTime, String author, String type) {
        this.bookNumber = new SimpleStringProperty(bookNumber);
        this.bookName = new SimpleStringProperty(bookName);
        this.status = new SimpleStringProperty(status);
        this.publishingHouse = new SimpleStringProperty(publishingHouse);
        this.price = new SimpleStringProperty(price.toString());
        this.publishingTime = new SimpleStringProperty(publishingTime.toString());
        this.author = new SimpleStringProperty(author);
        this.type = new SimpleStringProperty(type);
    }

}
